package com.warmheart.core.co.model;

import java.io.Serializable;

import com.warmheart.core.co.enums.OrderTypeEnum;

/**
 * 
 * @ClassName: OrderByModel
 * @Description: 自定义排序模型
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class OrderByModel implements Serializable {

    private static final long serialVersionUID = 1L;

    private String orderByField;

    private String orderType;

    public OrderByModel() {
    }

    public OrderByModel(String orderByField, OrderTypeEnum orderTypeEnum) {
        this.orderByField = orderByField;
        this.orderType = orderTypeEnum.getValue();
    }

    public String getOrderByField() {
        return orderByField;
    }

    public void setOrderByField(String orderByField) {
        this.orderByField = orderByField;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
}
